<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>SDL_gpu: GPU_Image Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SDL_gpu
   &#160;<span id="projectnumber">0.10.0</span>
   </div>
   <div id="projectbrief">A hardware-accelerated, cross-platform 2D graphics API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">GPU_Image Struct Reference<div class="ingroups"><a class="el" href="group__ImageControls.html">Image Controls</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="SDL__gpu_8h_source.html">SDL_gpu.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ac20372691a19133429253aa886b65900"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structGPU__Renderer.html">GPU_Renderer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_ac20372691a19133429253aa886b65900.html#ac20372691a19133429253aa886b65900">renderer</a></td></tr>
<tr class="separator:ac20372691a19133429253aa886b65900"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a06d06e420cecbf85d581c172fa2aa9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structGPU__Target.html">GPU_Target</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a4a06d06e420cecbf85d581c172fa2aa9.html#a4a06d06e420cecbf85d581c172fa2aa9">target</a></td></tr>
<tr class="separator:a4a06d06e420cecbf85d581c172fa2aa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a013c2ce991b3f1a273673ebbfda8ec7a"><td class="memItemLeft" align="right" valign="top">Uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a013c2ce991b3f1a273673ebbfda8ec7a.html#a013c2ce991b3f1a273673ebbfda8ec7a">w</a></td></tr>
<tr class="separator:a013c2ce991b3f1a273673ebbfda8ec7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f164258fbc96f088bb36b28d2633329"><td class="memItemLeft" align="right" valign="top">Uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a8f164258fbc96f088bb36b28d2633329.html#a8f164258fbc96f088bb36b28d2633329">h</a></td></tr>
<tr class="separator:a8f164258fbc96f088bb36b28d2633329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3672a27a79880ee4d951f2c6bc20dd9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ImageControls_ga19ea92e865387a6bcc947d562817e916.html#ga19ea92e865387a6bcc947d562817e916">GPU_FormatEnum</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_ae3672a27a79880ee4d951f2c6bc20dd9.html#ae3672a27a79880ee4d951f2c6bc20dd9">format</a></td></tr>
<tr class="separator:ae3672a27a79880ee4d951f2c6bc20dd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a553b608f50bc7478824f6aa0aeb2fa74"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a553b608f50bc7478824f6aa0aeb2fa74.html#a553b608f50bc7478824f6aa0aeb2fa74">num_layers</a></td></tr>
<tr class="separator:a553b608f50bc7478824f6aa0aeb2fa74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac48d56fd3c5d2a67c0ed8389d5a816e2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_ac48d56fd3c5d2a67c0ed8389d5a816e2.html#ac48d56fd3c5d2a67c0ed8389d5a816e2">bytes_per_pixel</a></td></tr>
<tr class="separator:ac48d56fd3c5d2a67c0ed8389d5a816e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29551476740e5213f2b900bc79e307d7"><td class="memItemLeft" align="right" valign="top">Uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a29551476740e5213f2b900bc79e307d7.html#a29551476740e5213f2b900bc79e307d7">base_w</a></td></tr>
<tr class="separator:a29551476740e5213f2b900bc79e307d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a726cebfd54e5c4e1b41d1999a281491b"><td class="memItemLeft" align="right" valign="top">Uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a726cebfd54e5c4e1b41d1999a281491b.html#a726cebfd54e5c4e1b41d1999a281491b">base_h</a></td></tr>
<tr class="separator:a726cebfd54e5c4e1b41d1999a281491b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cc9252d06238f65440843cd420ebac2"><td class="memItemLeft" align="right" valign="top">Uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a9cc9252d06238f65440843cd420ebac2.html#a9cc9252d06238f65440843cd420ebac2">has_mipmaps</a></td></tr>
<tr class="separator:a9cc9252d06238f65440843cd420ebac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c836369e8e7ef884c90a308e7dadd60"><td class="memItemLeft" align="right" valign="top">SDL_Color&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a3c836369e8e7ef884c90a308e7dadd60.html#a3c836369e8e7ef884c90a308e7dadd60">color</a></td></tr>
<tr class="separator:a3c836369e8e7ef884c90a308e7dadd60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3b3a1e27ebe788414d0359d259f8edd"><td class="memItemLeft" align="right" valign="top">Uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_ad3b3a1e27ebe788414d0359d259f8edd.html#ad3b3a1e27ebe788414d0359d259f8edd">use_blending</a></td></tr>
<tr class="separator:ad3b3a1e27ebe788414d0359d259f8edd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef559581e537658d91d6b6a6c9ba7252"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structGPU__BlendMode.html">GPU_BlendMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_aef559581e537658d91d6b6a6c9ba7252.html#aef559581e537658d91d6b6a6c9ba7252">blend_mode</a></td></tr>
<tr class="separator:aef559581e537658d91d6b6a6c9ba7252"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b99e47d025f2205d743cdcc4a8f8b27"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ImageControls_ga1ce812a0e1da31a0c46af7a1aef06787.html#ga1ce812a0e1da31a0c46af7a1aef06787">GPU_FilterEnum</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a6b99e47d025f2205d743cdcc4a8f8b27.html#a6b99e47d025f2205d743cdcc4a8f8b27">filter_mode</a></td></tr>
<tr class="separator:a6b99e47d025f2205d743cdcc4a8f8b27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e9994711b61dddb57f26e7d52df2cc4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ImageControls_gaa51e662f695f2abd50f2281263ef0c57.html#gaa51e662f695f2abd50f2281263ef0c57">GPU_SnapEnum</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a7e9994711b61dddb57f26e7d52df2cc4.html#a7e9994711b61dddb57f26e7d52df2cc4">snap_mode</a></td></tr>
<tr class="separator:a7e9994711b61dddb57f26e7d52df2cc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1feaaa45b38f0e550b058712aec26934"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ImageControls_ga3db6ff8461cbbcc6dd37b0a8094a6e74.html#ga3db6ff8461cbbcc6dd37b0a8094a6e74">GPU_WrapEnum</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a1feaaa45b38f0e550b058712aec26934.html#a1feaaa45b38f0e550b058712aec26934">wrap_mode_x</a></td></tr>
<tr class="separator:a1feaaa45b38f0e550b058712aec26934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e0c4651c279882faa69f968af74d305"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ImageControls_ga3db6ff8461cbbcc6dd37b0a8094a6e74.html#ga3db6ff8461cbbcc6dd37b0a8094a6e74">GPU_WrapEnum</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a5e0c4651c279882faa69f968af74d305.html#a5e0c4651c279882faa69f968af74d305">wrap_mode_y</a></td></tr>
<tr class="separator:a5e0c4651c279882faa69f968af74d305"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45fb48c14146845281971c57cc45efb4"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a45fb48c14146845281971c57cc45efb4.html#a45fb48c14146845281971c57cc45efb4">data</a></td></tr>
<tr class="separator:a45fb48c14146845281971c57cc45efb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6748b7ce80b06fcc7e1c897b958c09b9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a6748b7ce80b06fcc7e1c897b958c09b9.html#a6748b7ce80b06fcc7e1c897b958c09b9">refcount</a></td></tr>
<tr class="separator:a6748b7ce80b06fcc7e1c897b958c09b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bd727d62b23e2ba9e441af476b8185f"><td class="memItemLeft" align="right" valign="top">Uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGPU__Image_a9bd727d62b23e2ba9e441af476b8185f.html#a9bd727d62b23e2ba9e441af476b8185f">is_alias</a></td></tr>
<tr class="separator:a9bd727d62b23e2ba9e441af476b8185f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Image object for containing pixel/texture data. A <a class="el" href="structGPU__Image.html">GPU_Image</a> can be created with <a class="el" href="group__ImageControls_gae761f502d4738a997c5ea3bde677fd8f.html#gae761f502d4738a997c5ea3bde677fd8f">GPU_CreateImage()</a>, <a class="el" href="group__ImageControls_gac1bda828ba4a3ffd2541d44ce61972f4.html#gac1bda828ba4a3ffd2541d44ce61972f4">GPU_LoadImage()</a>, <a class="el" href="group__ImageControls_ga791bb156c017c6682a0aea870c4655b5.html#ga791bb156c017c6682a0aea870c4655b5">GPU_CopyImage()</a>, or <a class="el" href="group__Conversions_ga487e41be10f64e70d34a6678e83187ea.html#ga487e41be10f64e70d34a6678e83187ea">GPU_CopyImageFromSurface()</a>. Free the memory with <a class="el" href="group__ImageControls_gadea06712bdb4f6a98aad60816816b3dc.html#gadea06712bdb4f6a98aad60816816b3dc">GPU_FreeImage()</a> when you're done. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__ImageControls_gae761f502d4738a997c5ea3bde677fd8f.html#gae761f502d4738a997c5ea3bde677fd8f">GPU_CreateImage()</a> </dd>
<dd>
<a class="el" href="group__ImageControls_gac1bda828ba4a3ffd2541d44ce61972f4.html#gac1bda828ba4a3ffd2541d44ce61972f4">GPU_LoadImage()</a> </dd>
<dd>
<a class="el" href="group__ImageControls_ga791bb156c017c6682a0aea870c4655b5.html#ga791bb156c017c6682a0aea870c4655b5">GPU_CopyImage()</a> </dd>
<dd>
<a class="el" href="group__Conversions_ga487e41be10f64e70d34a6678e83187ea.html#ga487e41be10f64e70d34a6678e83187ea">GPU_CopyImageFromSurface()</a> </dd>
<dd>
<a class="el" href="structGPU__Target.html">GPU_Target</a> </dd></dl>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="SDL__gpu_8h_source.html">SDL_gpu.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Feb 11 2015 20:10:48 for SDL_gpu by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
